﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mForum.Core.Exceptions
{
    public class ErrorException<T> : Exception where T : class
    {
        private T _errors;

        public ErrorException(T error, string errorMessage) : base(errorMessage)
        {
            _errors = error;
        }

        public T Errors
        {
            get { return _errors; }
            private set { _errors = value; }
        }

        public override string Message
        {
            get
            {
                return base.Message;
            }
        }

    }
}
